package com.bestcem.xm.txtanls.grpc.service.param.record;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.txtanls.service.dto.chart.TimeRangeDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author liheng
 * @version v1.0
 * @date 2021/5/14 14:00
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecordTopicRelationParam {

    /**
     * 文本分析项目id
     */
    @NotBlank(message = "分析项目id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "项目id格式错误")
    private String projectId;

    /**
     * 分析字段id
     */
    private String fieldId;

    /**
     * 时间区间
     */
    private TimeRangeDTO timeRangeDTO;

}
